<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/5/19
 * Time: 11:30
 */

namespace DesignPatterns\Structure\Decorator;


class Latiao extends Decorator
{
    public function name()
    {
        return $this->food->name() . '+辣条';
    }

    public function price()
    {
        return $this->food->price() + 1.5;
    }
}